﻿<%@ Page Title="Control de Obsequios" Language="C#" MasterPageFile="~/MasterPage/Master.Master" AutoEventWireup="true" CodeBehind="wFrmControlObsequiosAgrupado.aspx.cs" Inherits="Crosland.Automotriz.Web.Vehiculos.wFrmControlObsequiosAgrupado" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPopupControl" tagprefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">
    <div class="main-header" style="width:100%;">
        <div class="main-titulo" style="text-align: left">
            Control Entrega de Obsequios Torito Tonero</div>
    </div>

    <div style="padding: 10px">

    <table width="100%">
        <tr>
            <td width="105">
                <dx:ASPxButton ID="btnImprimir" runat="server" AutoPostBack="False" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Imprimir" 
                    Width="100px">
                    <ClientSideEvents Click="function(s, e) {
	location.href=&quot;../Reportes/wFrmReporte.aspx?url=/SAP_Vehiculos/rsControlObsequios&amp;id=3&amp;sub=89&quot;;
}" />
                    <Image Url="~/Images/printer.png">
                    </Image>
                </dx:ASPxButton>
            </td>
            <td width="145">
                <dx:ASPxButton ID="btnConsultarFolio" runat="server" AutoPostBack="False" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Buscar Factura" 
                    Width="140px" Wrap="True">
                    <ClientSideEvents Click="function(s, e) {
	popupBuscar.Show();
}" />
                    <Image Url="~/Images/landscape.gif">
                    </Image>
                </dx:ASPxButton>
            </td>
            <td>
                <dx:ASPxButton ID="btnSalir" runat="server" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Salir" 
                    Width="100px" AutoPostBack="False">
                    <ClientSideEvents Click="function(s, e) {
	location.href=&quot;../Repuestos/wFrmDefault.aspx?id=3&quot;;
}" />
                    <Image Url="~/Images/logout.png">
                    </Image>
                </dx:ASPxButton>
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <hr />
            </td>
        </tr>
    </table>
    <table width="100%">
        <tr>
            <td style="width: 52px">
                <asp:Label ID="Label1" runat="server" ForeColor="Black" Text="Cartera:"></asp:Label>
            </td>
            <td width="105">
                <dx:ASPxComboBox ID="cboCartera" runat="server" AutoPostBack="True" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" 
                    onselectedindexchanged="cboCartera_SelectedIndexChanged" SelectedIndex="0" 
                    Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                    Width="100px">
                    <Items>
                        <dx:ListEditItem Selected="True" Text="Lima" Value="1" />
                        <dx:ListEditItem Text="Provincia" Value="2" />
                    </Items>
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                    </LoadingPanelImage>
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                    <ButtonStyle Width="20px">
                    </ButtonStyle>
                    <Paddings PaddingLeft="5px" />
                </dx:ASPxComboBox>
            </td>
            <td style="width: 81px">
                <asp:Label ID="Label2" runat="server" ForeColor="Black" Text="Supervisor:"></asp:Label>
            </td>
            <td width="255">
                <dx:ASPxComboBox ID="cboSupervisor" runat="server" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" Spacing="0" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                    Width="250px">
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                    </LoadingPanelImage>
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                    <ButtonStyle Width="20px">
                    </ButtonStyle>
                    <Paddings PaddingLeft="5px" />
                </dx:ASPxComboBox>
            </td>
            <td style="width: 72px">
                <asp:Label ID="Label8" runat="server" ForeColor="Black" Text="Oferta:"></asp:Label>
            </td>
            <td style="width: 72px">
                <dx:ASPxComboBox ID="cboOferta" runat="server" AutoPostBack="True" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" 
                    onselectedindexchanged="cboOferta_SelectedIndexChanged" Spacing="0" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="200px">
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                    </LoadingPanelImage>
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                    <DropDownButton Width="20px">
                    </DropDownButton>
                    <ButtonStyle Width="13px">
                    </ButtonStyle>
                    <Paddings PaddingLeft="5px" />
                </dx:ASPxComboBox>
            </td>
            <td style="width: 179px">
                <asp:Label ID="Label3" runat="server" Text="Fecha Inicio:" ForeColor="Black"></asp:Label>
            </td>
            <td style="width: 72px">
                <asp:Label ID="lblFechaInicio" runat="server" Font-Bold="True" 
                    ForeColor="Black"></asp:Label>
            </td>
            <td style="width: 134px">
                <asp:Label ID="Label7" runat="server" ForeColor="Black" Text="Fecha Fin:"></asp:Label>
            </td>
            <td width="135">
                <asp:Label ID="lblFechaFinal" runat="server" Font-Bold="True" ForeColor="Black"></asp:Label>
            </td>
            <td>
                <dx:ASPxButton ID="btnConsultar" runat="server" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Consultar" 
                    Width="100px" onclick="btnConsultar_Click">
                    <Image Url="~/Images/search.png">
                    </Image>
                </dx:ASPxButton>
            </td>
        </tr>
    </table>
    <dx:ASPxGridView ID="gv" runat="server" 
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" Width="100%" AutoGenerateColumns="False" 
            KeyFieldName="ID_CLIENTE">
        <Columns>
            <dx:GridViewDataTextColumn Caption="Distribuidor" FieldName="DES_CLIENTE" 
                VisibleIndex="1">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="Facturadas" FieldName="FACTURADAS" 
                VisibleIndex="2" Width="100px">
                <DataItemTemplate>
                    <asp:LinkButton ID="lnkFacturadas" runat="server" Font-Bold="True" 
                        ForeColor="#003366" Text='<%# Bind("FACTURADAS") %>' 
                        onclick="lnkFacturadas_Click"></asp:LinkButton>
                </DataItemTemplate>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="Entregadas" FieldName="ENTREGADAS" 
                VisibleIndex="3" Width="100px">
                <DataItemTemplate>
                    <asp:LinkButton ID="lnkEntregadas" runat="server" Font-Bold="True" 
                        ForeColor="#003366" Text='<%# Bind("ENTREGADAS") %>' 
                        onclick="lnkEntregadas_Click"></asp:LinkButton>
                </DataItemTemplate>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="Pendientes" FieldName="PENDIENTES" 
                VisibleIndex="4" Width="100px">
                <DataItemTemplate>
                    <asp:LinkButton ID="lnkPendientes" runat="server" Font-Bold="True" 
                        ForeColor="#003366" Text='<%# Bind("PENDIENTES") %>' 
                        onclick="lnkPendientes_Click"></asp:LinkButton>
                </DataItemTemplate>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="Supervisor" FieldName="Supervisor" 
                VisibleIndex="0">
            </dx:GridViewDataTextColumn>
        </Columns>
        <SettingsBehavior AllowDragDrop="False" AllowFocusedRow="True" 
            AllowGroup="False" AllowSelectByRowClick="True" 
            AllowSelectSingleRowOnly="True" />
        <SettingsPager PageSize="18">
        </SettingsPager>
        <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
            <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
            </LoadingPanelOnStatusBar>
            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
            </LoadingPanel>
        </Images>
        <ImagesFilterControl>
            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
            </LoadingPanel>
        </ImagesFilterControl>
        <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
            CssPostfix="Office2010Blue">
            <Header ImageSpacing="5px" SortingImageSpacing="5px">
            </Header>
            <LoadingPanel ImageSpacing="5px">
            </LoadingPanel>
        </Styles>
        <StylesPager>
            <PageNumber ForeColor="#3E4846">
            </PageNumber>
            <Summary ForeColor="#1E395B">
            </Summary>
        </StylesPager>
        <StylesEditors ButtonEditCellSpacing="0">
            <ProgressBar Height="21px">
            </ProgressBar>
        </StylesEditors>
    </dx:ASPxGridView>

        <dx:ASPxPopupControl ID="ASPxPopupControl1" runat="server" AllowDragging="True" 
            AppearAfter="0" ClientIDMode="Static" ClientInstanceName="popupBuscar" 
            CloseAction="CloseButton" 
            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
            CssPostfix="Office2010Blue" EnableHotTrack="False" HeaderText="Buscar" 
            Modal="True" PopupHorizontalAlign="WindowCenter" 
            PopupVerticalAlign="WindowCenter" 
            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
            Width="500px">
            <HeaderImage Url="~/Images/search.png">
            </HeaderImage>
            <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
            </LoadingPanelImage>
            <HeaderStyle>
            <Paddings PaddingLeft="7px" />
            </HeaderStyle>
            <LoadingPanelStyle ImageSpacing="5px">
            </LoadingPanelStyle>
            <ContentCollection>
<dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
    <table width="100%">
        <tr>
            <td style="width: 64px">
                <asp:Label ID="Label9" runat="server" ForeColor="Black" Text="N° Folio:" 
                    style="font-weight: 700"></asp:Label>
            </td>
            <td width="105">
                <dx:ASPxTextBox ID="txtFolio" runat="server" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" Height="25px" MaxLength="20" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="130px">
                    <Paddings PaddingLeft="5px" />
                </dx:ASPxTextBox>
            </td>
            <td>
                <dx:ASPxButton ID="btnBuscar" runat="server" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" OnClick="btnBuscar_Click" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Buscar" 
                    Width="100px">
                    <Image Url="~/Images/search.png">
                    </Image>
                </dx:ASPxButton>
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <hr />
            </td>
        </tr>
    </table>

                <table id="tblVenta" border="0" cellpadding="4" cellspacing="3" width="100%" runat="server">
                    <tr>
                        <td style="width: 93px">
                            <asp:Label ID="Label14" runat="server" style="font-weight: 700" Text="N° SAP:"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="lblNumeroSAP" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 93px">
                            <asp:Label ID="Label15" runat="server" style="font-weight: 700" Text="Fecha:"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="lblFecha" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 93px">
                            <asp:Label ID="Label10" runat="server" style="font-weight: 700" Text="Cliente:"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="lblCliente" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 93px">
                            <asp:Label ID="Label16" runat="server" style="font-weight: 700" 
                                Text="Supervisor:"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="lblSupervisor" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 93px">
                            <asp:Label ID="Label11" runat="server" style="font-weight: 700" Text="N° VIN:"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="lblNumeroVIN" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 93px">
                            <asp:Label ID="Label12" runat="server" style="font-weight: 700" 
                                Text="N° Motor:"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="lblNumeroMotor" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 17px; width: 93px">
                            <asp:Label ID="Label17" runat="server" style="font-weight: 700" 
                                Text="Importe S/.:"></asp:Label>
                        </td>
                        <td style="height: 17px">
                            <asp:Label ID="lblImporte" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 93px">
                            <asp:Label ID="Label13" runat="server" style="font-weight: 700" 
                                Text="Cod. Material:"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="lblCodMaterial" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 93px">
                            &nbsp;</td>
                        <td>
                            <asp:Label ID="lblEstado" runat="server" Font-Bold="True"></asp:Label>
                        </td>
                    </tr>
                </table>

                </dx:PopupControlContentControl>
</ContentCollection>
        </dx:ASPxPopupControl>

    </div>

</asp:Content>
